<!--
	此示例下载自 https://echarts.apache.org/examples/zh/editor.html?c=line-simple&version=5.4.1
-->
<!DOCTYPE html>
<html lang="zh-CN" style="height: 100%">
<head>
  <meta http-equiv="Refresh" content="30" />
  <meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
<div id="container" style="height: 100%"></div>


<script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@5.4.1/dist/echarts.min.js"></script>

<script type="text/javascript">
    var dom = document.getElementById('container');
    var myChart = echarts.init(dom, null, {
      renderer: 'canvas',
      useDirtyRect: false
    });
    var app = {};

    var option;

    option = {
  xAxis: {
    type: 'category',
    data:[  {% for i = 1, #logList do local t = logList[i] %}    '{* t.access_time *}',  {% end %}],

  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
        data:[  {% for i = 1, #logList do local t = logList[i] %}    {* t.count *},  {% end %}],

      type: 'line'
    }
  ]
};

    if (option && typeof option === 'object') {
      myChart.setOption(option);
    }

    window.addEventListener('resize', myChart.resize);
  </script>
</body>
</html>